
import { defHttp } from '../http'
import type { ChartParams, ChartData, INodeStatistics, IPackStatistics, ITccStatistics } from '../model/statistics'
import type { BaseListResp } from './response'
/** 图表请求 */
export const OverviewStatistics = (params: ChartParams = {}) => defHttp.get<BaseListResp<ChartData[]>>('/v1/daily_statistic', { params })
/** 获取节点统计 */
export const NodeStatistics = (params: Recordable = {}) => defHttp.get<BaseListResp<INodeStatistics>>('/v1/node/statistics', { params })
/** 获取TCC统计 */
export const TccStatistics = (params: Recordable = {}) => defHttp.get<BaseListResp<ITccStatistics>>('/v1/node/tcc/statistics', { params })
/** 获取打包统计 */
export const PackStatistics = (params: Recordable = {}) => defHttp.get<BaseListResp<IPackStatistics>>('/v1/node_pack_task/statistics', { params })